﻿
using Lzkj.AepCoapCore;

using System;

namespace Microsoft.Extensions.DependencyInjection
{
    public static class ApplicationExtension
    {
        /// <summary>
        /// 添加AEP服务
        /// <list type="number">
        /// <item>AEP接口服务<see cref="IAepCoapService"/></item>
        /// </list>
        /// </summary>
        /// <param name="serviceDescriptors"></param>
        /// <returns></returns>
        public static IServiceCollection AddAepCoapService(this IServiceCollection serviceDescriptors)
        {
            serviceDescriptors.AddTransient<IAepCoapService, AepCoapService>();
            return serviceDescriptors;
        }
    }
}
